package com.ruoyi.system.domain.ro;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 文创数据商品 bs_qiye_merchandise
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "文创数据商品 入参")
public class BsQiyeMerchandiseRO extends BaseEntity {

    private static final long serialVersionUID = -6438546382253859594L;

    /**
     * id
     */
    @NotNull(message = "商品id 不能为空", groups = {ValidUpdateGroup.class})
    @ApiModelProperty(value = "商品id")
    private Long id;

    @NotNull(message = "所属企业id不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "企业id")
    private Long qiyeId;

    @NotNull(message = "商品名称 不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "商品名称")
    private String merchandiseName;

    @NotNull(message = "商品价格 不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "商品价格")
    private String merchandisePrice;

    @NotNull(message = "商品首图 不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "商品首图")
    private String merchandiseHeadImg;

    @ApiModelProperty(value = "商品详情其他图片-预留字段")
    private String merchandiseOtherImg;

    @ApiModelProperty(value = "商品标签-预留字段")
    private String merchandiseTag;

    @ApiModelProperty(value = "商品介绍")
    private String merchandiseIntroduce;

    @NotNull(message = "是否有售 不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "是否有售 0无货 1有售")
    private String onSaleStatus;

}
